
@mixin clearfix {
    &::after {
        content: "";
        display: block;
        height: 0;
        clear: both;
    }
}

.banner_main {

    ul {
        width: 220px;
        list-style: none;
        float: left;
        background-color: #fcf9e3;

        li {
            width: 220px;
            cursor: pointer;
            text-align: center;

            >div {
                display: inline-block;
                position: relative;

                img {
                    position: absolute;
                    top: 54%;
                    left: -24px;
                    height: 20px;
                    transform: translateY(-50%);
                }

                div {
                    color: #999;
                    font-size: 14px;
                    line-height: 44px;
                    display: inline-block;
                }

            }
        }
    }

    >div {
        margin-left: 20px;
        margin-top: 10px;
        float: left;
        @include clearfix();

        .banner {
            float: left;
            width: 630px;
            height: 230px;

            .swiper {
                width: 630px;
                height: 230px;

                img {
                    width: 100%;
                    height: 100%;
                }
            }
        }

        .rigth_img {
            float: left;
            margin-left: 20px;

            img {
                width: 300px;
                height: 230px;
            }
        }

        .bottom_div {
            @include clearfix();

            img {
                margin-top: 20px;
                
                width: 280px;
                height: 130px;
                float: left;
                &:not(:nth-of-type(3)){
                    margin-right: 53px;
                }
            }

        }
    }
}

.product_list {
    margin-top: 10px;

    .product_header {
        background-color: white;
        width: 100%;
        margin-bottom: 20px;

        h2 {
            font-size: 18px;
            font-weight: 400;
            margin-left: 40px;
            display: inline-block;
            line-height: 64px;
        }

        span {
            margin-left: 40px;
            font-size: 14px;
            color: #999;
        }
    }

    .product_list_main {
        padding: 0 14px;

        ul {
            list-style: none;

            li {
                float: left;
                width: 278px;
                height: 390px;
                background-color:white;
                margin-bottom: 20px;

                &:not(:nth-of-type(4n)) {
                    margin-right: 20px;
                }

                img {
                    width: 100%;
                    height: 278px;
                }

                a {
                    text-decoration: none;
                    color: #999;

                    >div {
                        padding: 0 10px;

                        p {
                            font-size: 14px;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            white-space: nowrap;
                            line-height: 28px;
                        }

                        div {
                            &:nth-of-type(1) {
                                padding: 5px 0;
                                span {
                                    &:nth-child(1) {
                                        display: inline-block;
                                        text-align: center;
                                        float: left;
                                        width: 30px;
                                        line-height: 20px;
                                        background-color: red;
                                        color: white;
                                        border-radius: 2px;
                                        font-size: 12px;
                                    }

                                    &:nth-child(2) {
                                        float: right;
                                    }
                                }
                            }
                            &:nth-of-type(2) {
                                font-size: 16px;
                                color: red;
                                span {
                                    &:nth-child(1) {
                                        display: inline-block;
                                        text-align: center;
                                        color: red;
                                        font-size: 36px;

                                    }
                                    &:nth-child(2) {
                                        margin-left: 10px;
                                       font-size: 16px;
                                       color: #999;
                                    }
                                }
                            }
                        }
                    }
                }


            }

        }

    }
}

